@model IEnumerable<NHAMIS.APP.Models.Nomination>

@{
    ViewBag.Title = "Index";
}

<h2>Search Nomination</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

<table class="table table-bordered table-hover table-striped">
    <thead>
        <tr>
            @*<th>SNO.</th>*@
            <th>Salutation</th>
            <th>Id Number</th>
            <th>Surname</th>
            <th>Other Names</th>
            <th>Nominating Body</th>
            <th>Medal</th>
            <th>Nationality</th>
            <th>County</th>
            <th>Status</th>
            <th width="80">Action</th>
        </tr>
    </thead>


    <table class="table">
        <tr>

            <th>
                @Html.DisplayNameFor(model => model.Salutation.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.IdNumber)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Surname)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.OtherNames)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.NominatingBody.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Medal.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Nationality)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Status)
            </th>




            @*<th>
                @Html.DisplayNameFor(model => model.AcademicQualification.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Country.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Gender.Name)
            </th>


            <th>
                @Html.DisplayNameFor(model => model.NominationPeriod.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Occupation.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PostalCode.Town)
            </th>

            <th>
                @Html.DisplayNameFor(model => model.UserDetails.Title)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Ward.WardName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Status)
            </th>


            <th>
                @Html.DisplayNameFor(model => model.DateOfBirth)
            </th>

            <th>
                @Html.DisplayNameFor(model => model.CountyOfBirth)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PostalAddress)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.EmailAddress)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MobileNumber)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Location)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SubLocation)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Village)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CitationSummary)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Position)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PhysicalAddress)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Status)
            </th>
            <th></th>
        </tr>*@

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.AcademicQualification.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Country.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Gender.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Medal.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.NominatingBody.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.NominationPeriod.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Occupation.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PostalCode.Town)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Salutation.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.UserDetails.Title)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Ward.WardName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IdNumber)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Surname)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.OtherNames)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DateOfBirth)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Nationality)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CountyOfBirth)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PostalAddress)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.EmailAddress)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.MobileNumber)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Location)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SubLocation)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Village)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CitationSummary)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Position)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PhysicalAddress)
                </td>

                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                    @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.Id })
                </td>
            </tr>
        }
		
		
		updateROH

    </table>
